
{{if $reg == 1}}
 <form method="post" action="{{$action}}" name="regform" ENCTYPE="multipart/form-data" onSubmit="return chkform(this)"> 
{{/if}}

	<div id="page">
	<div id="page-bgtop">
	<div id="page-bgbtm">
		<div id="content">
			<div class="post">
			<div class="post-bgtop">
			<div class="post-bgbtm">
				<h2 class="title"><a href="#">{{$LDCrearPermisos}}</a></h2>
					
				<div class="entry">
					<p>
                                        {{$Message}}
					                                            
					<div class="table">
                                                <table width=100% border=0>
							<tr>
								<td width=50%>
									<a href="#">{{$LDRol}}:</a>
								</td>
                                                                <td width=50%>
                                                                    <select name="role">
                                                                    {{section name=g loop=$role}}
                                                                        <option value={{$role[g].name}}>{{$role[g].name}}</option>
                                                                    {{/section}}

                                                                </td>
                                                         </tr>
                                                         <tr>
								<td width=50%>
									<a href="#">{{$LDRecurso}}:</a>
								</td>
                                                                <td width=50%>
                                                                    <select name="resource">
                                                                    {{section name=g loop=$resource}}
                                                                        <option value={{$resource[g].name}}>{{$resource[g].name}}</option>
                                                                    {{/section}}

                                                                </td>
                                                         </tr>
                                                         <tr>
                                                                <td width=50%>
									<a href="#">{{$LDPermiso}}:</a>
								</td>
                                                                <td width=50%>
                                                                                <select name="permission">
										<option value=Select>Select</option>
										<option value=Insert>Insert</option>
                                                                                <option value=Update>Update</option>
                                                                                <option value=Delete>Delete</option>
                                                                                </select>
								</td>
							</tr>
						</table>
					</div>
                                        <br><br><br><br><br>
                                        <div id="botones">
							<h1><a onclick="document.forms[0].submit()">{{$LDCrear}}</a></h1>
                                        </div>
                                            
                                        
                                        
					</p>
				</div>
			</div>
			</div>
			</div>
			
		<div style="clear: both;">&nbsp;</div>
		</div>

		<div id="sidebar">
				<ul>
					<li>
						<h2>{{$LDCategorias}}</h2>

						{{include file="rbac/MenuRbac.tpl"}}
						<script type="text/javascript">

						cssdropdown.startchrome("chromemenu")

						</script>
				</li>
			</ul>
		</div>

		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	</div>
</div>

<p>
{{if $reg == 1}}
	{{$pbSubmit}}
	{{$pbReset}}
{{else}}
	{{$pbResponse}}
	{{$pbEdit}}
	{{$pbAsignar}}
        {{$pbBitacora}}
{{/if}}
</p>
</form>

<script>
{{if $showSoap}}
     request_soap();
{{/if}}
show_basicdata();
showTrasladoNoAdherencia();
</script>

